Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lean: omit type abbreviations and leave a comment instead #983

Closed
wants to merge 1 commit into from

Conversation

javra
Copy link
Collaborator

@javra javra commented Feb 12, 2025

Type abbreviations are expanded by the rewrite passes anyway, so we don't need to print them as abbrevs.

@javra javra force-pushed the lean/type_abbreviations branch from 3669305 to 5a683e0 Compare February 12, 2025 12:34
Copy link

github-actions bot commented Feb 12, 2025

Test Results

   12 files  ±0     26 suites  ±0   0s ⏱️ ±0s
  764 tests ±0    764 ✅ ±0  0 💤 ±0  0 ❌ ±0 
2 709 runs  ±0  2 709 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 67d4ad3. ± Comparison against base commit 1d02546.

♻️ This comment has been updated with latest results.

@javra javra force-pushed the lean/type_abbreviations branch from 5a683e0 to b787048 Compare February 12, 2025 14:07
@javra javra force-pushed the lean/type_abbreviations branch from b787048 to 67d4ad3 Compare February 12, 2025 20:01
Copy link
Contributor

@PeterSewell PeterSewell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in general, I would have thought you'd want to keep the type abbreviations, for readability of the generated code?

@javra
Copy link
Collaborator Author

javra commented Feb 13, 2025

What is the reason they are expanded in the Coq frontend?

@bacam
Copy link
Contributor

bacam commented Feb 13, 2025

They're not expanded everywhere, but I think the typechecker currently expands type abbreviations in every function signature. We should probably try to keep them more often.

@tobiasgrosser tobiasgrosser added the Lean Issues with Sail to Lean translation label Feb 13, 2025
@javra
Copy link
Collaborator Author

javra commented Feb 13, 2025

Okay, so I guess maybe I'll try to fix them instead of commenting them out.

@javra javra marked this pull request as draft February 13, 2025 16:49
@tobiasgrosser
Copy link
Collaborator

This has been superseded by #991.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Lean Issues with Sail to Lean translation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants